Leadtools.Medical.Caching Namespace > Cache Class > Add Method : Add(String,Byte[],CacheItemPriority) Method |
'Declaration Public Overloads Overridable Sub Add( _ ByVal id As String, _ ByVal data() As Byte, _ ByVal priority As CacheItemPriority _ )
'Usage Dim instance As Cache Dim id As String Dim data() As Byte Dim priority As CacheItemPriority instance.Add(id, data, priority)
function Leadtools.Medical.Caching.Cache.Add(String,Byte[],CacheItemPriority)( id , data , priority )
public: virtual void Add( String^ id, array<byte>^ data, CacheItemPriority priority )
This method will check whether the item already exists before inserting it. If the item exists this method will throw exception. To force the Cache object to try inserting the cache item call the Insert(String,Byte[],CacheItemPriority) method.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2